<?php
namespace app\index\controller;
use think\Db;
class Articlecat extends Base
{   
    public function lists($id=0 ){
        $data = [
            'list' => Db::name('article')->where('cat_id', $id)->select(),
            'info' => Db::name('article_cat')->find($id),
        ];
        return view('', $data);
    }
}